const routes = [
  {
    path: '/',
    redirect: '/login',
    meta: {
      title: '',
      hidden: true,
    },
  },
  {
    name: 'login',
    path: '/login',
    meta: {
      title: '登录',
      hidden: true,
    },
    component: () => import('@/views/login/index.vue'),
  },
  {
    name: 'layout',
    path: '/layout',
    meta: {
      title: '菜单',
      hidden: true,
      icon: 'House',
    },
    redirect: '/home',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'home',
        path: '/home',
        meta: {
          title: '首页',
          hidden: false,
          icon: 'House',
        },
        component: () => import('@/views/home/index.vue'),
      },
    ],
  },
  {
    name: 'screen',
    path: '/screen',
    meta: {
      title: '数据大屏',
      hidden: false,
      icon: 'Monitor',
    },
    component: () => import('@/views/screen/index.vue'),
  },
  {
    name: 'overview',
    path: '/overview',
    meta: {
      title: '系统概览',
      hidden: false,
      icon: 'document',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'overview',
        path: '/overview',
        meta: {
          title: '系统概览',
          hidden: false,
          icon: 'document',
        },
        component: () => import('@/views/overview/index.vue'),
      },
    ],
  },
  {
    name: 'userManagement',
    path: '/userManagement',
    meta: {
      title: '用户管理',
      hidden: false,
      icon: 'User',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'tableList',
        path: '/tableList',
        meta: {
          title: '表格信息录入',
          hidden: false,
          icon: 'UserFilled',
        },
        component: () => import('@/views/user/tableList/index.vue'),
      },
      {
        name: 'studentInfoEchart',
        path: '/studentInfoEchart',
        meta: {
          title: '表格信息视图',
          hidden: false,
          icon: 'UserFilled',
        },
        component: () => import('@/views/user/tableEchart/index.vue'),
      },
      {
        name: 'userList',
        path: '/userList',
        meta: {
          title: '用户列表',
          hidden: false,
          icon: 'UserFilled',
        },
        component: () => import('@/views/user/userList/index.vue'),
      },
      {
        name: 'productAdmin',
        path: '/productAdmin',
        meta: {
          title: '产品管理员',
          hidden: false,
          icon: 'UserFilled',
        },
        component: () => import('@/views/user/productAdmin/index.vue'),
      },
      {
        name: 'userAdmin',
        path: '/userAdmin',
        meta: {
          title: '用户管理员',
          hidden: false,
          icon: 'UserFilled',
        },
        component: () => import('@/views/user/userAdmin/index.vue'),
      },
      {
        name: 'messageAdmin',
        path: '/messageAdmin',
        meta: {
          title: '消息管理员',
          hidden: false,
          icon: 'UserFilled',
        },
        component: () => import('@/views/user/messageAdmin/index.vue'),
      },
    ],
  },
  {
    name: 'productManagement',
    path: '/productManagement',
    meta: {
      title: '产品管理',
      hidden: false,
      icon: 'Suitcase',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'productList',
        path: '/productList',
        meta: {
          title: '产品列表',
          hidden: false,
          icon: 'Briefcase',
        },
        component: () => import('@/views/product/productList/index.vue'),
      },
      {
        name: 'outboundList',
        path: '/outboundList',
        meta: {
          title: '出库列表',
          hidden: false,
          icon: 'Briefcase',
        },
        component: () => import('@/views/product/outboundList/index.vue'),
      },
    ],
  },
  {
    name: 'messageManagement',
    path: '/messageManagement',
    meta: {
      title: '消息管理',
      hidden: false,
      icon: 'Message',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'messageList',
        path: '/messageList',
        meta: {
          title: '消息列表',
          hidden: false,
          icon: 'List',
        },
        component: () => import('@/views/message/messageList/index.vue'),
      },
      {
        name: 'recycleBin',
        path: '/recycleBin',
        meta: {
          title: '回收站',
          hidden: false,
          icon: 'Delete',
        },
        component: () => import('@/views/message/recycleBin/index.vue'),
      },
    ],
  },
  {
    name: 'loginLog',
    path: '/loginLog',
    meta: {
      title: '登录日志',
      hidden: false,
      icon: 'Document',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'loginLog',
        path: '/loginLog',
        meta: {
          title: '登录日志',
          hidden: false,
          icon: 'Document',
        },
        component: () => import('@/views/loginLog/index.vue'),
      },
    ],
  },
  {
    name: 'operationLog',
    path: '/operationLog',
    meta: {
      title: '操作日志',
      hidden: false,
      icon: 'Coordinate',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'operationLog',
        path: '/operationLog',
        meta: {
          title: '操作日志',
          hidden: false,
          icon: 'Coordinate',
        },
        component: () => import('@/views/operationLog/index.vue'),
      },
    ],
  },
  {
    name: 'contractManagement',
    path: '/contract',
    meta: {
      title: '合同管理',
      hidden: false,
      icon: 'Notebook',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'contract',
        path: '/contract',
        meta: {
          title: '合同管理',
          hidden: false,
          icon: 'Notebook',
        },
        component: () => import('@/views/contract/index.vue'),
      },
    ],
  },
  {
    name: 'set',
    path: '/set',
    meta: {
      title: '系统设置',
      hidden: false,
      icon: 'setting',
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        name: 'set',
        path: '/set',
        meta: {
          title: '系统设置',
          hidden: false,
          icon: 'setting',
        },
        component: () => import('@/views/set/index.vue'),
      },
    ],
  },
]
export default routes
